package com.softaria.spkiller.layers.classificator.impl;

import java.io.IOException;

import com.softaria.spkiller.metadata.ClassMetaData;

public class ExtendsClassPredicate implements ClassificationPredicate{

	private String className;
	
	public ExtendsClassPredicate(String className) {
		super();
		this.className = className;
	}

	@Override
	public boolean matches(ClassMetaData metaData, ClassProbe classProbe)
			throws IOException {
		return classProbe.extendsClass(metaData, className);
	}

}
